//
//  ProductDetailModel.swift
//  HappyEat
//
//  Created by 张继强 on 17/1/24.
//  Copyright © 2017年 陌路是我. All rights reserved.
//

import UIKit
import SwiftyJSON


//当status == 2时
//countDownTime:开奖倒计时
//
//当status == 3时
//luckyCode:幸运号码
//luckyUserName:幸运者
//luckyUserId:幸运用户Id
//luckyUserHeaderImg:幸运用户头像
//luckyParticipateNum:幸运者该期参与人次
//announceTime:揭晓时间
//
//当用户登录时，有以下字段
//
//participateNum:参与人次
//code:参与号码



class ProductDetailModel: HomePageProductModel {
    //1众筹中 2待揭晓 2已揭晓
    var status:String?
    var unitPrice:String?
    var luckyCode:String?
    var luckyUserName:String?
    var luckyUserId:String?
    var luckyUserHeaderImg:String?
    var luckyParticipateNum:String?
    var announceTime:String?
    
    
    var participateNum:String?
    var code:String?
    override init(data: JSON) {
       super.init(data: data)
        self.status = data["status"].stringValue
        self.unitPrice = data["unitPrice"].stringValue
        self.luckyCode = data["luckyCode"].stringValue
        self.luckyUserName = data["luckyUserName"].stringValue
        self.luckyUserId = data["luckyUserId"].stringValue
        self.luckyUserHeaderImg = data["luckyUserHeaderImg"].stringValue
        self.luckyParticipateNum = data["luckyParticipateNum"].stringValue
        self.announceTime = data["announceTime"].stringValue
        self.participateNum = data["participateNum"].stringValue
        self.code = data["code"].stringValue
    }
}
